﻿#include "masterthread.h"
 
MasterThread::MasterThread(QObject *parent) :
    QThread(parent)
{
    m_quit = false;
}
MasterThread::~MasterThread()
{
    m_quit = true;
}

void MasterThread::run()
{
    bool currentPortNameChanged = false;
#if 0
    m_mutex.lock();

    m_mutex.unlock();
//! [5] //! [6]
    QSerialPort serial;
#endif

    while (!m_quit) {
//![6] //! [7]
    msleep(100);

    }
//! [13]
}
